package com.hdsx.design.softdesign.principle;

/**
 * @author 占贤银
 * time 2024/8/21 17:25
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
public class JavaDiscountCourse extends JavaCourse {
    public JavaDiscountCourse(String id, String name, Double price) {
        super(id, name, price);
    }

    @Override
    public Double getPrice() {
        return super.getPrice() * 0.8;
    }

    public Double getOriginPrice() {
        return super.getPrice();
    }
}
